﻿<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<title>{$sitetitle}</title>
	<link rel="stylesheet" type="text/css" href="./html/common.css" />
	<script type="text/javascript" src="./html/js/core.js"></script>
</head>
<div class="content">
	<div class = "setTitle">通用设置</div>
	<form action="trans.php?action=settings" method="post">
	<table class="setTable">
		<tbody>
			<tr>
				<td><b>网站地址</b><br>这里填写网站的地址，用于导航链接等内容<br>如：http://localhost/MoodBlog/</td><td><input name="url" class="setInput"/ value="{if $configs.url}{$configs.url}{/if}"></td>
			</tr>
			<tr>
				<td><b>网站标题</b></td><td><input name="title" class="setInput" value="{if $configs.title}{$configs.title}{/if}"></input></td>
			</tr>
			<tr>
				<td><b>网站副标题</b><br>在前台logo下显示的文字</td><td><input name="addtitle" class="setInput" value="{if $configs.addtitle}{$configs.addtitle}{/if}"></input></td>
			</tr>
			<tr>
				<td><b>LOGO下方文字</b></td><td><input name="logotext" class="setInput" value="{if $configs.logotext}{$configs.logotext}{/if}"></input></td>
			</tr>
			<tr>
				<td><b>底部信息</b><br>在网站前台底部显示的内容，可以填写版权、备案号等信息</td><td><textarea name="footext"class="setInput setText" >{if $configs.footext}{$configs.footext}{/if}</textarea></td>
			</tr>
			<tr>
				<td><b>首页文章数目</b></td><td><input name="indexnum" class="setInput" value="{if $configs.indexnum}{$configs.indexnum}{/if}"/></td>
			</tr>
			<tr>
				<td><b>列表页文章数目</b></td><td><input name="listnum" class="setInput" value="{if $configs.listnum}{$configs.listnum}{/if}"></input></td>
			</tr>
			<tr>
				<td><b>翻页条显示最大翻页数目</b></td><td><input name="maxpage" class="setInput" value="{if $configs.maxpage}{$configs.maxpage}{/if}"></input></td>
			</tr>
			<tr>
				<td>每页最大评论数</td><td><input name="maxremark" class="setInput" value="{if $configs.maxremark}{$configs.maxremark}{/if}"></input></td>
			</tr>
		</tbody>
	</table>
	<div class="adminSub">
		<input type="submit" value="提交">
	</div>
	</form>

</div>
<div class="content">
	<div class = "setTitle">导航设置</div>
	<table class="setTable">
	<thead>
		<tr>
			<th>顺序</th>
			<th>名字</th>
			<th>地址</th>
			<th>显示</th>
			<th>管理</th>
		</tr>
	</thead>
	<tbody>
			{foreach $topmenu as $value}
				<tr>
				<td><input type="text" value="{$value.index}"></td>
				<td><input type="text" value="{$value.title}"></td>
				<td><input type="text" value="{$value.url}"></td>
				<td>
					<select>
					<option value="0" {if $value.state==0}selected{/if}>显示</option>
					<option value="1" {if $value.state==1}selected{/if}>隐藏</option>
					</section>
				</td>
				<td><input style="display:none" type="text" value="{$value.id}"><a href="trans.php?action=delmenu&&id={$value.id}">删除</a></td>
				</tr>			
			{/foreach}
			<tr>
				<td><input type="text"></td>
				<td><input type="text"></td>
				<td><input type="text"></td>
				<td>
					<select>
					<option value="0" >显示</option>
					<option value="1" >隐藏</option>
					</section>
				</td>
				<td></td>
			</tr>
	</tbody>
	<tfoot>
		<tr>
		<td colspan="4" scope="col">
			<a id="add" href="" onclick="addTable(this,event)">+添加导航</a>
		</td>
		<div class="adminSub">
			<td><input type="submit" style="width:40px" value="提交" onclick="subMenuSet(this)"></td>
		</div>	
		</tr>
	</tfoot>
	</table>
</div>
